<?php

namespace App\Http\Controllers\admin\user;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

use App\Models\User;
use App\Models\User_info;
use App\Models\Doctor;
use App\Models\District;
use App\Models\Address;
use App\Models\Cart;
use App\Models\Order;
use App\Models\Order_info;
use App\Models\Order_time;

class OrderController extends Controller
{
    public function index()
    {
        $status = [1 => '待付款', 2 => '待发货', 3 => '待收货', 4 => '待评价', 5 => '已完成', 6 => '已取消'];
        $order = new Order();
        $list = $order->getorder();
        return view('admin.user.orderlist',['list'=>$list, 'status' => $status]);
    }

    public function recycleorder()
    {
        $order = new Order();
        $list = $order->recycleorder();
        return view('admin.user.recycleorder',['list'=>$list]);
    }
}
